package com.zhaopin.springboot.filer;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author Administrator
 * @create 2021-04-22 17:56
 */
public class MyFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("---------------通过配置类注册过滤器-------------------");
        filterChain.doFilter(servletRequest,servletResponse);

    }
}
